package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hsp
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_comment")
public class Comment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer commodityId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 打分
     */
    private Integer score;

    private String commentContent;

    /**
     * 评论照片
     */
    private Integer commentImgId;

    /**
     * 商家回复
     */
    private String reply;

}
